package com.woniu.staff.cliententity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("account_role")
@ApiModel("账号角色关联对象")
@AllArgsConstructor
@NoArgsConstructor
public class AccountRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "id",value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /*
    用户id
     */
    @ApiModelProperty(name = "accountId",value = "用户id")
    @TableField("account_id")
    private Long accountId;
    /*
    角色id
     */
    @ApiModelProperty(name = "roleId",value = "角色id")
    @TableField("role_id")
    private Long roleId;


}
